Text File | 1998-12-25 | 626 b | 5 lines | [TEXT/ttxt]
This is a modified version of the Scrolling Demo that tests out the scrolling versions of the functions in SWFastLine.c. About all I added were ProcessRect(), EraseRectOffscreen(), and DrawRectOffscreen(). I also modified the Sprite MoveProcs so they set the needsToBeDrawn flag to true to they don't get erased when the rect moves over them, added a few global variables, and installed EraseRectOffscreen and DrawRectOffscreen as my postEraseCallBack and postDrawCallBack, respectively.
The only other modification is that the program makes sure it's in 8-bit depth; it not, it presents an alert dialog box and quits.